<?php Yii::app()->clientScript->registerScriptFile(Yii::app()->params['static'].'assets/js/bootbox.min.js',2); ?>

<div class="row">
	<div class="col-xs-12">
		<div class="row">
		   <div class="widget-box">
								<div class="widget-header widget-header-small">
									<h5></h5>
								</div>

								<div class="widget-body">
									<div class="widget-main">
										
										<div class="tabbable">
											<ul class="nav nav-tabs padding-12 tab-color-blue background-blue" id="myTab4">
												<li class="active">
													<a data-toggle="tab" href="#form1">第一学期</a>
												</li>
                                                <li class="">
													<a data-toggle="tab" href="#form2">第二学期</a>
												</li>
												
												<li class="">
													<a data-toggle="tab" href="#form3">第三学期</a>
												</li>
												<li class="">
													<a data-toggle="tab" href="#form4">第四学期</a>
												</li>
												<li class="">
													<a data-toggle="tab" href="#form5">第五学期</a>
												</li>
												<li class="">
													<a data-toggle="tab" href="#form6">第六学期</a>
												</li>
												<li class="">
													<a data-toggle="tab" href="#form7">第七学期</a>
												</li>
												<li class="">
													<a data-toggle="tab" href="#form8">第八学期</a>
												</li>
											</ul>

											<div class="tab-content">
												<div id="form1" class="tab-pane active">
													<?php echo $this->renderPartial('_stuschitems',array('t'=>$t1,'credit'=>$credit1)); ?>
												</div>
                                                <div id="form2" class="tab-pane">
													<?php echo $this->renderPartial('_stuschitems',array('t'=>$t2,'credit'=>$credit2)); ?>
												</div>
												<div id="form3" class="tab-pane">
													<?php echo $this->renderPartial('_stuschitems',array('t'=>$t3,'credit'=>$credit3)); ?>
												</div>
                                                 <div id="form4" class="tab-pane">
													<?php echo $this->renderPartial('_stuschitems',array('t'=>$t4,'credit'=>$credit4)); ?>
												</div>
												<div id="form5" class="tab-pane">
													<?php echo $this->renderPartial('_stuschitems',array('t'=>$t5,'credit'=>$credit5)); ?>
												</div>
												<div id="form6" class="tab-pane">
													<?php echo $this->renderPartial('_stuschitems',array('t'=>$t6,'credit'=>$credit6)); ?>
												</div>
												<div id="form7" class="tab-pane">
													<?php echo $this->renderPartial('_stuschitems',array('t'=>$t7,'credit'=>$credit7)); ?>
												</div>
												<div id="form8" class="tab-pane">
													<?php echo $this->renderPartial('_stuschitems',array('t'=>$t8,'credit'=>$credit8)); ?>
												</div>
												
											</div>
										</div>
				               
					    </div>
					</div>
				</div>	
			</div>
		</div>
	</div>	
<script type="text/javascript">
  jQuery(function(){
	  $('[delete-sc]').on('click',function(){
		 var id = $(this).attr('delete-sc');
         bootbox.confirm("确定要删除吗？",function(result){
			if(result){
				
			   	$.post("<?php echo Yii::app()->createUrl('stuscholarship/delete'); ?>",{'stuscid':id},function(data){
				    data = $.parseJSON(data);
					bootbox.alert(data['msg'],function(){
						if(data['code'] == '200'){
						    $('#'+id).fadeToggle('800','linear',function(){
									$(this).remove();
						    });
						}	
					});
					
					
				});
				
			}	
			 
		 });
		  
	  });
	  
	  
	  
  })
</script>